// $Id: loggercountinsert.h 65 2004-10-27 21:44:50Z hansemil $
#ifndef LOGGERCOUNTINSERT_H
#define LOGGERCOUNTINSERT_H

#include "loggercount.h"
#include "eos.h"
#include "file.h"
#include "noderequestfileparameters.h"
#include <fstream>

/**
 * @todo Write documentation
 */
class LoggerCountInsert : public LoggerCount {
public:
	LoggerCountInsert();
	void eos_simulate_start(void *);
	void eos_simulate_stop(void *);
	void clock_tick(unsigned int);
	void node_routeFile(void *, void *, void *, unsigned char);

private:
	Eos *m_eos;
	std::fstream m_fout;
	NodeRequestFileParameters *m_params;
	std::vector<int> m_sizeList;
	int m_sizeListSum;
	int m_failedCount, m_collisionCount;
};

#endif
